<%-- 
    Document   : Change_Password_admintrator
    Created on : Aug 31, 2013, 1:33:56 PM
    Author     : 4410s
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Change Password Admin Page</title>
        <link rel="stylesheet" type="text/css" href="../css/style.css"/>
        <style type="text/css">
            table.styletable{
                font-family: verdana,Times New Roman,sans-serif;
                font-size:11px;
                color:black;
                width: 100%;
            }
            table.styletable td {
                background:#ff99ff;
                border-width: 1px;
                padding: 8px;
               
            }
        </style>
        <script>
            function CheckpassAdmin()
            {
                if (ChangePassAdmin.txt_password.value == "") {
                    alert(' Password can not be empty ');
                    ChangePassAdmin.txt_password.focus();
                    return false;
                }
                else if (ChangePassAdmin.txt_newpassword.value == "") {
                    alert(' Password New can not be empty ');
                    ChangePassAdmin.txt_newpassword.focus();
                    return false;
                }
                else if (ChangePassAdmin.txt_confirmnewpassword.value == "") {
                    alert('  Confirm Password New can not be empty ');
                    ChangePassAdmin.txt_confirmnewpassword.focus();
                    return false;
                }
                else if (ChangePassAdmin.txt_confirmnewpassword.value != ChangePassAdmin.txt_newpassword.value) {
                    alert('  Confirm Password New Incorrect');
                    ChangePassAdmin.txt_confirmnewpassword.focus();
                    return false;
                }
                return true;
            }
        </script>
    </head>
    <body>
        <div align="center">            
            <div align="left" style="height: auto; width: 800px">
                <form action="../Change_Password_admintration" id="frmchangepassadmin" name="ChangePassAdmin" method="POST">
                    <table border="0" class="styletable" >
                        <tbody>
                            <tr>
                                <td align="right">UserNameAdmin :</td>
                                <td><input type="text" name="txt_usernameadmin" align="left" class="gwt-TextBox" value="<%out.println(request.getSession().getAttribute("login_admin").toString());%>" /></td>
                            </tr>
                            <tr>
                                <td align="right">Password :</td>
                                <td><input type="password" align="left" name="txt_password" class="gwt-TextBox"  value="" /></td>
                            </tr>
                            <tr>
                                <td align="right">New Password :</td>
                                <td><input type="password" align="left" name="txt_newpassword" class="gwt-TextBox"  value="" /></td>
                            </tr>
                            <tr>
                                <td align="right">Confirm New Password :</td>
                                <td><input type="password" align="left" name="txt_confirmnewpassword" class="gwt-TextBox"  value="" /></td>
                            </tr>
                            <tr>
                                <td align="right" ><input type="submit" value="OK" class="gwt-Button" onclick="return CheckpassAdmin();" /></td>
                                <td align="left"><input type="reset" value="Reset"  class="gwt-Button" /></td>
                            </tr>
                        </tbody>
                    </table>
                </form>
            </div>
        </div>
    </body>
</html>
